//
//  SelectNavView.m
//  diaoyuren
//
//  Created by 钓鱼人 on 16/2/17.
//  Copyright © 2016年 game. All rights reserved.
//

#import "SelectNavView.h"


@interface SelectNavView ()

@end

@implementation SelectNavView


-(instancetype)initWithFrame:(CGRect)frame{
    if (self = [super initWithFrame:frame]) {
        StatusBlack
        self.backgroundColor = [UIColor whiteColor];
        _bacBtn=[UIButton buttonWithType:UIButtonTypeCustom];
        _bacBtn.frame = CGRectMake(0, 0, 120, 64);
        _bacBtn.imageEdgeInsets = UIEdgeInsetsMake(20, 15, 0, 0);
        [_bacBtn setImage:[UIImage imageNamed:@"btn-return"] forState:UIControlStateNormal];
        [_bacBtn setTitle:@"ButtonButton" forState:UIControlStateNormal];
        [_bacBtn setTitleColor:[UIColor clearColor] forState:UIControlStateNormal];
        [self addSubview:_bacBtn];
        
        _titile = [[MBLabelWithFontAdapter alloc]initWithFrame:CGRectMake((SCREEN_WIDTH-(SCREEN_WIDTH-200))/2, 20, SCREEN_WIDTH-200, 44)];
        _titile.font = [UIFont systemFontOfSize:18];
        _titile.text = @"详情";
        _titile.textAlignment = NSTextAlignmentCenter;
        [self addSubview:_titile];
        
        //分享
        _share=[UIButton buttonWithType:UIButtonTypeCustom];
        _share.frame = CGRectMake(SCREEN_WIDTH-40-20, 15, 60, 44);

        [_share setTitleColor:mainColor forState:UIControlStateNormal];
        
        [_share setTitle:@"哈哈哈哈哈哈哈哈哈哈哈" forState:UIControlStateNormal];
        [self addSubview:_share];
        
        _share.titleLabel.font = [UIFont boldSystemFontOfSize:25];
        

        UIView *lin = [[UIView alloc]initWithFrame:CGRectMake(0, H(self)-0.7, SCREEN_WIDTH, 0.7)];
        lin.backgroundColor = [UIColor lightGrayColor];
        [self addSubview:lin];
    }
    return self;
}




@end